<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>PersonForm</title>
  <style>
    .error { color: red; }
  </style>  
</head>
<body>
<h1>Person</h1>
<form:form method="post" commandName="Person">
  <table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
    <tr>
    	<td>Surname</td>
    	<td><form:input path="surname"/></td>
	</tr>
	<tr>       	
		<td>Name</td>
		<td><form:input path="name"/></td>
	</tr>
	<tr>
    	<td>Sex</td>
    	<td><form:select path="sex">
    		<form:option value="F">F</form:option>
    		<form:option value="M">M</form:option>
    	</form:select></td>
    </tr>
    <tr>
    	<td>Age</td>
    	<td><form:input path="age"/></td>
    </tr>
    <tr>
    	<td>Email</td>
    	<td><form:input path="email"/></td>
    </tr>
    <tr>
    	<td>Phone</td>
    	<td><form:input path="phone"/></td>
    </tr>
    <tr>
    	<td>Address</td>
    	<td><form:input path="address"/></td>
    </tr>
  </table>
  <br>
  <input type="submit" align="center" value="Execute" onclick="location.href='<c:url value="persons.htm"/>'">
  <br>
  <a href="persons.htm">Home</a>
</form:form>
</body>
</html>